package cn.com.huzo.model.entities.master;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 客户尺码标号表实体类
 *
 * @author 吴旭
 */
public class CustomerSizeLableEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = 7610760455552773411L;
    private Long CustomerId;             // 客户ID
    private String CustomerName;         // 客户名
    private Long SizeId;                 // 尺码ID
    private String SizeName;             // 尺码名
    private String SizeLable;            // 尺码标号
    private String Description;          // 备注

    public Long getCustomerId() {
        return CustomerId;
    }

    public void setCustomerId(Long CustomerId) {
        this.CustomerId = CustomerId;
    }

    public String getCustomerName() {
        return CustomerName;
    }

    public void setCustomerName(String CustomerName) {
        this.CustomerName = CustomerName;
    }

    public Long getSizeId() {
        return SizeId;
    }

    public void setSizeId(Long SizeId) {
        this.SizeId = SizeId;
    }

    public String getSizeName() {
        return SizeName;
    }

    public void setSizeName(String SizeName) {
        this.SizeName = SizeName;
    }

    public String getSizeLable() {
        return SizeLable;
    }

    public void setSizeLable(String SizeLable) {
        this.SizeLable = SizeLable;
    }

    public String getDescription() {
        return Description;
    }

    public void setDescription(String Description) {
        this.Description = Description;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof CustomerSizeLableEntity)) {
            return false;
        }

        final CustomerSizeLableEntity that = (CustomerSizeLableEntity) o;

        return new EqualsBuilder()
                .append(this.getCustomerId(), that.getCustomerId())
                .append(this.getSizeId(), that.getSizeId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + this.getCustomerId().hashCode();
        result = 31 * result + this.getSizeId().hashCode();
        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
